package com.study.scala.collections.queue

import scala.collection.mutable.Queue

object TestQueue {

  def main(args: Array[String]): Unit = {

    val queue = new Queue[String];

    queue.enqueue("aaa");
    queue.enqueue("bbb");
    queue.enqueue("ccc");
    queue.enqueue("ddd");

    println(queue.dequeue())

    val queue2 = scala.collection.immutable.Queue.apply("aaaa", "cccc");
    println(queue2.dequeue)

  }

}